/**
 * 
 */
package pluginUtils.geneticAlgorithms;

import java.util.Random;

/**
 * @author decomite
 *
 */
public class Cercle {
	private static Random generator=new Random();
	protected int x,y; 
	protected int radius; 
	protected int red,green,blue; 
	
	public Cercle(int limX,int limY){
		red =generator.nextInt(256);
		green=generator.nextInt(256);
		blue=generator.nextInt(256);
		
		x=generator.nextInt(limX+limX/2)-limX/2; 
		y=generator.nextInt(limY+limY/2)-limY/2;
		radius=generator.nextInt(limX)+limX/10;
	}

	/**
	 * @return the x
	 */
	public int getX() {
		return x;
	}

	/**
	 * @return the y
	 */
	public int getY() {
		return y;
	}

	/**
	 * @return the radius
	 */
	public int getRadius() {
		return radius;
	}

	/**
	 * @return the red
	 */
	public int getRed() {
		return red;
	}

	/**
	 * @return the green
	 */
	public int getGreen() {
		return green;
	}

	/**
	 * @return the blue
	 */
	public int getBlue() {
		return blue;
	}

	/**
	 * @return
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return x+" "+y+" "+radius;
	}
	

}
